package org.luckyjourney.entity.regularusers;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class RegularUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // @ApiModelProperty("用户名")
    private String nickName;

    @TableField(exist = false)
    private Boolean each;

    // @Email
    // private String email;

    @NotBlank(message = "密码不能为空")
    private String password;

    private String description;

    // true 为男，false为女
    private Boolean sex;

    // 用户默认收藏夹id
    private Long defaultFavoritesId;

    // 头像
    private String avatar;


    // @ApiModelProperty("用户手机号")
    private String phone;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdated;


    private Integer moduleId;

    private Long cover;

    @ApiModelProperty("证书")
    private String certificate;
    @ApiModelProperty("专业资质")
    private String professionalQualifications;
    @ApiModelProperty("图册")
    private String atlas;
    @ApiModelProperty("从业年限")
    private String yearsExperience;


    private String address;

}
